home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-07-07 | 1.7 KB | 53 lines | [TEXT/R*ch] |
- InfoButton
- Copyright © 1994 by Apple Computer, Inc. All rights reserved.
- by Maurice Sharp (with thanks to Newton UI team)
-
- This sample provides a user proto for an application Info button. This button
- brings up a pick list that can be used for Application specific Help, Prefs
- and About information.
-
- This info button will eventually become a standard user interface widget.
-
- To use the protoInfoButton you will need to include both the protoInfoButton
- and protoInfoButton.rsrc files in your project.
-
- In your project, drag out the protoInfoButton in your status bar.
- You will need to provide the following methods/slots:
-
-
- AppInfoItems
-
- This is generally defined in the base view, though it can be define in
- the protoInfoButton if you want. The protoInfoButton will use inheritance
- to find this array.
-
- An array of items that will be used to construct the pick list in the
- protoActionButton. These will be searched for using inheritance.
-
- The order of items MUST be:
-
- About
- Help
- Prefs
- 'pickSeparator
- <app specific items>
-
- If you do not have all of About, Help and Prefs, keep the ordering listed
- above, but leave out the unused items.
-
- If you do not have any application specific items, do not include the
- pick separator.
-
- Note that application specific items should be global in nature. That is,
- they should specify a global state or initiate a global action.
-
-
- pickActionScript
-
- a function as described in NPG 2-65 (protoInfoButton uses DoPopup).
- This is called when the user chooses an item from the pick list
- created by the protoActionButton. You should respond appropriately.
-
- NOTE: You MUST call :Hilite(nil) at the beginning of the pickActionScript,
- otherwise the Info button will NOT unhilite.
-